/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.garcomeletronico.telas;

import br.com.garcomeletronico.bean.Pedido;
import br.com.garcomeletronico.fachada.Fachada;
import java.sql.SQLException;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Rivi
 */
public class TelaVerificarStatus extends javax.swing.JFrame {

    DefaultTableModel tmStatus = new DefaultTableModel(null, new String[]{"Código", "Hora", "Código Funcionario", "Código da Mesa", "Valor", "Status", "Obs"});
    List<Pedido> pedido;
    ListSelectionModel lsmpedido;

    /**
     * Creates new form TelaVerificarStatus
     */
    public TelaVerificarStatus() {
        initComponents();
        setLocationRelativeTo(null);
        desabilitarDados();
    }

    public void desabilitarDados() {
        jTCodigo.setEditable(false);
        jTHora.setEditable(false);
        jTStatus.setEditable(false);
        jTValor.setEditable(false);
        jTCodFuncionario.setEditable(false);
        jTCodMesa.setEditable(false);
        jTObs.setEditable(false);
    }

    private void mostrarPesquisaCardapio(List<Pedido> pedido) {
        while (tmStatus.getRowCount() > 0) {
            tmStatus.removeRow(0);
        }
        String[] linha = new String[]{null, null, null, null, null, null, null};

        for (int i = 0; i < pedido.size(); i++) {
            tmStatus.addRow(linha);
            tmStatus.setValueAt(pedido.get(i).getCodigo(), i, 0);
            tmStatus.setValueAt(pedido.get(i).getHora(), i, 1);
            tmStatus.setValueAt(pedido.get(i).getFunc_Cod(), i, 2);
            tmStatus.setValueAt(pedido.get(i).getMesa_Cod(), i, 3);
            tmStatus.setValueAt(pedido.get(i).getValor(), i, 4);
            tmStatus.setValueAt(pedido.get(i).getStatus_2(), i, 5);
            tmStatus.setValueAt(pedido.get(i).getOBS(), i, 6);
        }
    }

    public void jTTabelaLinhaSelecionada(JTable tabela) {
        if (jTTabela.getSelectedRow() != -1) {
            jTCodigo.setText(String.valueOf(pedido.get(tabela.getSelectedRow()).getCodigo()));
            jTHora.setText(String.valueOf(pedido.get(tabela.getSelectedRow()).getHora()));
            jTCodMesa.setText(String.valueOf(pedido.get(tabela.getSelectedRow()).getMesa_Cod()));
            jTCodFuncionario.setText(String.valueOf(pedido.get(tabela.getSelectedRow()).getFunc_Cod()));
            jTValor.setText(String.valueOf(pedido.get(tabela.getSelectedRow()).getValor()));
            jTObs.setText(pedido.get(tabela.getSelectedRow()).getOBS());
            jTStatus.setText(pedido.get(tabela.getSelectedRow()).getStatus_2());
        } else {
            jTCodigo.setText("");
            jTObs.setText("");
            jTCodFuncionario.setText("");
            jTCodMesa.setText("");
            jTHora.setText("");
            jTStatus.setText("");
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jBPronto = new javax.swing.JButton();
        jBAguardando = new javax.swing.JButton();
        jBAtendido = new javax.swing.JButton();
        jBCancelar = new javax.swing.JButton();
        jBSair = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTTabela = new javax.swing.JTable();
        jBPesquisar = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jLCodigo = new javax.swing.JLabel();
        jTCodigo = new javax.swing.JTextField();
        jTHora = new javax.swing.JTextField();
        jLHora = new javax.swing.JLabel();
        jLValor = new javax.swing.JLabel();
        jTValor = new javax.swing.JTextField();
        jTStatus = new javax.swing.JTextField();
        jLStatus = new javax.swing.JLabel();
        jLObs = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTObs = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        jTCodFuncionario = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jTCodMesa = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jBPronto.setText("Pronto");
        jBPronto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBProntoActionPerformed(evt);
            }
        });

        jBAguardando.setText("Aguardando");
        jBAguardando.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAguardandoActionPerformed(evt);
            }
        });

        jBAtendido.setText("Atendido");
        jBAtendido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAtendidoActionPerformed(evt);
            }
        });

        jBCancelar.setText("Cancelar");
        jBCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBCancelarActionPerformed(evt);
            }
        });

        jBSair.setText("Sair");
        jBSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBSairActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jBPronto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBAguardando)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBAtendido)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBCancelar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBSair)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jBAguardando, jBAtendido, jBCancelar, jBPronto, jBSair});

        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBPronto)
                    .addComponent(jBAguardando)
                    .addComponent(jBAtendido)
                    .addComponent(jBCancelar)
                    .addComponent(jBSair))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jBAguardando, jBAtendido, jBCancelar, jBPronto, jBSair});

        jTTabela.setModel(tmStatus);
        jTTabela.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        lsmpedido = jTTabela.getSelectionModel();
        lsmpedido.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (! e.getValueIsAdjusting()){ jTTabelaLinhaSelecionada(jTTabela); } }
        });
        jScrollPane1.setViewportView(jTTabela);

        jBPesquisar.setText("Pesquisar");
        jBPesquisar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBPesquisarActionPerformed(evt);
            }
        });

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados do Pedido"));

        jLCodigo.setText("Código:");

        jLHora.setText("Hora:");

        jLValor.setText("Valor:");

        jLStatus.setText("Status:");

        jLObs.setText("Obs:");

        jTObs.setColumns(20);
        jTObs.setRows(5);
        jScrollPane2.setViewportView(jTObs);

        jLabel1.setText("Código Funcionário");

        jLabel2.setText("Código da Mesa");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLCodigo)
                    .addComponent(jLValor)
                    .addComponent(jTCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLStatus)
                    .addComponent(jTValor, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jTCodMesa, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLHora)
                        .addComponent(jTCodFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jTHora)))
                .addGap(129, 129, 129)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 287, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLObs))
                .addGap(21, 21, 21))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLCodigo)
                    .addComponent(jLHora)
                    .addComponent(jLObs))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLValor)
                            .addComponent(jLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTCodFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLStatus)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTCodMesa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(27, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jBPesquisar)
                .addGap(23, 23, 23))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(63, 63, 63)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jBPesquisar)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBSairActionPerformed
        dispose();
    }//GEN-LAST:event_jBSairActionPerformed

    private void jBPesquisarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBPesquisarActionPerformed
        try {
            pedido = Fachada.getInstancia().listarTodosPedidos();
            mostrarPesquisaCardapio(pedido);
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Nenhum pedido encontrado!");
            //Logger.getLogger(TelaVerificarStatus.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jBPesquisarActionPerformed

    private void jBProntoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBProntoActionPerformed
        try {
            if (jTTabela.getSelectedRow() != -1) {
                Pedido p = new Pedido();
                p.setStatus_2("1 - Pronto");
                p.setCodigo(Integer.valueOf(jTCodigo.getText()));
                Fachada.getInstancia().atualizarProntoPedido(p);
                pedido = Fachada.getInstancia().listarTodosPedidos();
                mostrarPesquisaCardapio(pedido);
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Nenhum pedido encontrado!");
        }

    }//GEN-LAST:event_jBProntoActionPerformed

    private void jBAguardandoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAguardandoActionPerformed
        try {
            if (jTTabela.getSelectedRow() != -1) {
                Pedido p = new Pedido();
                p.setStatus_2("2 - Aguardando");
                p.setCodigo(Integer.valueOf(jTCodigo.getText()));
                Fachada.getInstancia().atualizarAguardandoPedido(p);
                pedido = Fachada.getInstancia().listarTodosPedidos();
                mostrarPesquisaCardapio(pedido);
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Nenhum pedido encontrado!");
        }

    }//GEN-LAST:event_jBAguardandoActionPerformed

    private void jBAtendidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAtendidoActionPerformed
        try {
            if (jTTabela.getSelectedRow() != -1) {
                Pedido p = new Pedido();
                p.setStatus_2("3 - Atendido");
                p.setCodigo(Integer.valueOf(jTCodigo.getText()));
                Fachada.getInstancia().atualizarAtendidoPedido(p);
                pedido = Fachada.getInstancia().listarTodosPedidos();
                mostrarPesquisaCardapio(pedido);
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Nenhum pedido encontrado!");
        }
    }//GEN-LAST:event_jBAtendidoActionPerformed

    private void jBCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBCancelarActionPerformed
        try {
            if (jTTabela.getSelectedRow() != -1) {
                Pedido p = new Pedido();
                p.setStatus_2("4 - Cancelado");
                p.setCodigo(Integer.valueOf(jTCodigo.getText()));
                Fachada.getInstancia().atualizarCancelarPedido(p);
                pedido = Fachada.getInstancia().listarTodosPedidos();
                mostrarPesquisaCardapio(pedido);
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Nenhum pedido encontrado!");
        }
    }//GEN-LAST:event_jBCancelarActionPerformed
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;


                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaVerificarStatus.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaVerificarStatus.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaVerificarStatus.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaVerificarStatus.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaVerificarStatus().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBAguardando;
    private javax.swing.JButton jBAtendido;
    private javax.swing.JButton jBCancelar;
    private javax.swing.JButton jBPesquisar;
    private javax.swing.JButton jBPronto;
    private javax.swing.JButton jBSair;
    private javax.swing.JLabel jLCodigo;
    private javax.swing.JLabel jLHora;
    private javax.swing.JLabel jLObs;
    private javax.swing.JLabel jLStatus;
    private javax.swing.JLabel jLValor;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextField jTCodFuncionario;
    private javax.swing.JTextField jTCodMesa;
    private javax.swing.JTextField jTCodigo;
    private javax.swing.JTextField jTHora;
    private javax.swing.JTextArea jTObs;
    private javax.swing.JTextField jTStatus;
    private javax.swing.JTable jTTabela;
    private javax.swing.JTextField jTValor;
    // End of variables declaration//GEN-END:variables
}
